import request from "../request";
/**
 *  商品详情
 * @returns
 */
function detailaction(data) {
  return request({
    url: "goods/detailaction",
    data,
  });
}
/**
 * 添加搜索
 * @param {*} data {  goodsId: 商品id, openId: 用户Id}
 * @returns
 */
function addcollect(data) {
  return request({
    method: "post",
    url: "collect/addcollect",
    data,
  });
}

function addCart(data) {
  return request({
    method: "post",
    url: "cart/addCart",
    data,
  });
}

export { detailaction, addcollect, addCart };
